package com.xuewei.pagedemo.service.impl;

import com.xuewei.pagedemo.entity.TDept;
import com.xuewei.pagedemo.mapper.TDeptMapper;
import com.xuewei.pagedemo.service.ITDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangxuewei
 * @since 2023-04-10
 */
@Service
public class TDeptServiceImpl extends ServiceImpl<TDeptMapper, TDept> implements ITDeptService {

    @Override
    public void add() {
        TDept dept = new TDept();
        dept.setName("管理部");
        int i =  10/0;
        this.save(dept);
    }
}
